<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8" />
    <title>统一地图平台</title><link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
    <style>
        html,
        body,
        #mapui {
            width: 100%;
            height: 100%;
        }
        
        html,
        body {
            margin: 0;
            padding: 0;
        }
    </style>
</head>

<body>
    <div id="mapui"></div>
    <script src="./js_example/script/map.min.js"></script>
    <script src="./js_example/script/psr.min.js"></script>
    <script src="./js_example/script/demo.js"></script>
    <script>
        var amap = null;
        var psrmap = null;
        var init = false;
        var clickpsrs = null;
        map.Config.mineToInternetV31();

        map.Factory.create('mapui', {
            style: style,
            center: center,
            zoom: 17,
            strategy: ['mapboxgl', 'openlayers', 'leaflet'],
        }, (o) => {
            amap = o;
            init = true;
            var self = this;
            this.addPSR();
            filter = new psr.Display.Filter(o.pmap);
        });

        function addPSR() {
            var self = this;
            this.psrmap = new psr.PSRMap(this.amap.pmap);
            this.psrmap.on('feafureClicked', (e) => {
                self.clickpsrs = e;
                console.log(e, "1111111111111")
                    // this.psrmap.highlightClick(e[count]);
            });
            this.psrmap.addPSR([], ['Microsoft YaHei UI Regular']);
        }
    </script>
</body>

</html>